package minimips.computer;

public class MemoryEventObject {
	
	private Memory memory;
	private int firstMemoryIndexAffected;
	private int loadStoreSize;
	private int lastMemoryIndexAffected;
	
	public MemoryEventObject(Memory memory, int firstMemoryIndex, int loadStoreSize) {
		this.memory = memory;
		this.firstMemoryIndexAffected = firstMemoryIndex;
		this.lastMemoryIndexAffected = firstMemoryIndex + loadStoreSize;
		this.loadStoreSize = loadStoreSize;
	}
	
	public Memory getMemory() {
		return this.memory;
	}
	
	public int getFirstMemoryIndexAffected() {
		return firstMemoryIndexAffected;
	}
	public int getLoadStoreSize() {
		return loadStoreSize;
	}
	public int getLastMemoryIndexAffected() {
		return lastMemoryIndexAffected;
	}

	
}
